#include <iostream>
#define N 100

using namespace std;


int main(){

int array[N];
int i;
int n;
int sum=0;
int product=1;
int E;
cout<<"Type the number of elements you want in the array (max 100)"<<endl;
cin>>n;
cout<<"Type the elements"<<endl;

for(i=0; i<n; i++){
	cin>>array[i];}

cout<<"The original array is ";

for(i=0; i<n; i++){
	cout<<array[i]<<" ";}
cout<<endl;

for(i=0; i<n; i++){
	sum +=array[i];}

cout<<"The sum of the elements is "<< sum<< endl;

for(i=0; i<n; i++){
	product *=array[i];}

cout<<"The product of the elements is "<< product<<endl;

E=sum+product;

cout<<"E(sum + product)="<< E<< endl;
return 0;
}

